package com.ma5d.driver.driver.service.impl;

import com.ma5d.driver.driver.client.DriverInfoFeignClient;
import com.ma5d.driver.driver.service.OcrService;
import com.ma5d.driver.model.vo.driver.IdCardOcrVo;
import com.ma5d.driver.model.vo.driver.DriverLicenseOcrVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class OcrServiceImpl implements OcrService {

    @Resource
    DriverInfoFeignClient driverInfoFeignClient;

    @Override
    public IdCardOcrVo idCardOcr(MultipartFile file) {
        return driverInfoFeignClient.idCardOcr(file).getData();
    }

    @Override
    public DriverLicenseOcrVo driverLicenseOcr(MultipartFile file) {
        return driverInfoFeignClient.driverLicenseOcr(file).getData();
    }
}
